/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.mphokazi.designpatterns.part1.behavioral.state;

/**
 *
 * @author mphokazi
 */
public class Personz implements EmotionalState {
  EmotionalState emotionalState ;
public Personz (EmotionalState emotionalState ) {
this.emotionalState = emotionalState ;
}
public void setEmotionalState ( EmotionalState emotionalState ) {
this.emotionalState = emotionalState ;
}
@Override
public String sayGoodbye ( ) {
return emotionalState.sayGoodbye ( ) ;
}
@Override
public String sayHello ( ) {
return emotionalState.sayHello( );  
}
}

